package calculadorfpa.modelo;

import org.apache.commons.beanutils.BeanUtils;

/**
 * @author TECBMBKD
 * @version 1.0
 * @created 19-jun-2011 14:18:06
 */
public class ProjetoCAEstimativa extends AbstratoProjetoCA implements Cloneable{

    private int qtdCE;
    private int qtdSE;
    private int qtdEE;

    public ProjetoCAEstimativa() {
    }

    public void finalize() throws Throwable {
        super.finalize();
    }

    /**
     * Calcular o PFB de acordo com a <a href="$element://{50678E0A-4E27-4a0c-BBE5-
     * 40D5C0EAA769}"><font color="#0000ff"><u>RN014</u></font></a>.
     */
    public void calcularPontoFuncaoBruto() {
        setPontoFuncaoBruto((qtdEE * 4) + (qtdSE * 5) + (qtdCE * 4) + (getQtdALI() * 7) + (getQtdAIE() * 5));
    }

    public int getQtdCE() {
        return qtdCE;
    }

    public void setQtdCE(int qtdCE) {
        this.qtdCE = qtdCE;
    }

    public int getQtdSE() {
        return qtdSE;
    }

    public void setQtdSE(int qtdSE) {
        this.qtdSE = qtdSE;
    }

    public int getQtdEE() {
        return qtdEE;
    }

    public void setQtdEE(int qtdEE) {
        this.qtdEE = qtdEE;
    }
    
    @Override
    public Object clone() {
          
        try {
            ProjetoCAEstimativa copiaProjeto = (ProjetoCAEstimativa) BeanUtils.cloneBean(this);     
                        
            return copiaProjeto;
        }catch(Exception e) {
            e.printStackTrace();;
        }
        return null;
    }
}
